﻿
using System;
using System.Collections;
namespace MVCFoto.Model
{
	/// <summary>
	/// 评论
///   
	/// </summary>
	public class CommentInfo
	{
			private int m_commentid;
			private int m_photoid;
			private int m_userid;
			private string m_username;
			private string m_content;
			private DateTime m_createdate;
	
	
	#region 构造函数
		/// <summary>
		/// 构造函数
		/// </summary>
		public CommentInfo()
		{
		
		}
		/// <summary>
		/// 构造函数
		/// </summary>
		public CommentInfo(int photoID,int userId,string userName,string content,DateTime createDate)
		{
			this.m_photoid = photoID;
		this.m_userid = userId;
		this.m_username = userName;
		this.m_content = content;
		this.m_createdate = createDate;
	
		}
	#endregion
	
	#region 属性

			/// <summary>
	/// 
	/// </summary>
	public int CommentID
	{
		set{ this.m_commentid = value;}
		get{ return this.m_commentid;}
	}

			/// <summary>
	/// 照片ID
	/// </summary>
	public int PhotoID
	{
		set{ this.m_photoid = value;}
		get{ return this.m_photoid;}
	}

			/// <summary>
	/// 
	/// </summary>
	public int UserId
	{
		set{ this.m_userid = value;}
		get{ return this.m_userid;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string UserName
	{
		set{ this.m_username = value;}
		get{ return this.m_username;}
	}
    public string UserAvatar { get; set; }
			/// <summary>
	/// 
	/// </summary>
	public string Content
	{
		set{ this.m_content = value;}
		get{ return this.m_content;}
	}

			/// <summary>
	/// 
	/// </summary>
	public DateTime CreateDate
	{
		set{ this.m_createdate = value;}
		get{ return this.m_createdate;}
	}


	#endregion
}
}
